package com.rongshu.view.userInfo.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class ReceiveMessage implements Parcelable {

    /**
     * badgeMsgCount : 4  //我的消息数
     * comment_id : 0  //评论id(0是没有)
     * id : 103  //（对象id）
     * type : 1  //（1.私信通知，2.消息推送-赞，3消息推送-评论，4，消息推送—@，5消息推送-关注人的文章，6系统消息）
     * type_obj : 0  //（1.文章，2.帖子）
     */

    private int badgeMsgCount;
    private int comment_id;
    private int id;
    private int type;
    private int type_obj;

    protected ReceiveMessage(Parcel in) {
        badgeMsgCount = in.readInt();
        comment_id = in.readInt();
        id = in.readInt();
        type = in.readInt();
        type_obj = in.readInt();
    }

    public static final Creator<ReceiveMessage> CREATOR = new Creator<ReceiveMessage>() {
        @Override
        public ReceiveMessage createFromParcel(Parcel in) {
            return new ReceiveMessage(in);
        }

        @Override
        public ReceiveMessage[] newArray(int size) {
            return new ReceiveMessage[size];
        }
    };

    public int getBadgeMsgCount() {
        return badgeMsgCount;
    }

    public void setBadgeMsgCount(int badgeMsgCount) {
        this.badgeMsgCount = badgeMsgCount;
    }

    public int getComment_id() {
        return comment_id;
    }

    public void setComment_id(int comment_id) {
        this.comment_id = comment_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getType_obj() {
        return type_obj;
    }

    public void setType_obj(int type_obj) {
        this.type_obj = type_obj;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(badgeMsgCount);
        dest.writeInt(comment_id);
        dest.writeInt(id);
        dest.writeInt(type);
        dest.writeInt(type_obj);
    }
}
